<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="java.util.*,com.card.setting.*"%>
<%@page import="com.card.match.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Template by www.lxkj.com</title>
<meta name="description"
	content="Administry - Admin Template by www.865171.cn" />
<meta name="keywords" content="Admin,Template" />
<!-- Favicons -->
<link rel="shortcut icon" type="image/png"
	HREF="img/favicons/favicon.png" />
<link rel="icon" type="image/png" HREF="img/favicons/favicon.png" />
<link rel="apple-touch-icon" HREF="img/favicons/apple.png" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="css/style.css" type="text/css" />
<!-- Your Custom Stylesheet -->
<link rel="stylesheet" href="css/custom.css" type="text/css" />
<!--swfobject - needed only if you require <video> tag support for older browsers -->
<script type="text/javascript" SRC="js/swfobject.js"></script>
<!-- jQuery with plugins -->
<script type="text/javascript" SRC="js/jquery-1.4.2.min.js"></script>
<!-- Could be loaded remotely from Google CDN : <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> -->
<script type="text/javascript" SRC="js/jquery.ui.core.min.js"></script>
<script type="text/javascript" SRC="js/jquery.ui.widget.min.js"></script>
<script type="text/javascript" SRC="js/jquery.ui.tabs.min.js"></script>
<!-- jQuery tooltips -->
<script type="text/javascript" SRC="js/jquery.tipTip.min.js"></script>
<!-- Superfish navigation -->
<script type="text/javascript" SRC="js/jquery.superfish.min.js"></script>
<script type="text/javascript" SRC="js/jquery.supersubs.min.js"></script>
<!-- jQuery popup box -->
<script type="text/javascript" SRC="js/jquery.nyroModal.pack.js"></script>
<!-- jQuery form validation -->
<script type="text/javascript" SRC="js/jquery.validate_pack.js"></script>
<script type="text/javascript" SRC="js/jquery.dataTables.min.js"></script>

<link rel="stylesheet" type="text/css"
	href="css/jquery-ui-1.8.17.custom.css" />
<link type="text/css" href="css/jquery-ui-timepicker-addon.css"
	rel="stylesheet" />
<script type="text/javascript"
	src="js/timepack/jquery-ui-1.8.17.custom.min.js"></script>
<script type="text/javascript"
	src="js/timepack/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript"
	src="js/timepack/jquery-ui-timepicker-zh-CN.js"></script>

<%
	String id = request.getParameter("id");
	String name = request.getParameter("name");
	List<Admin> adviceList = AdminManager.getInstance().getAdminByFatherId(Integer.parseInt(id));
%>

<body>
	<%@include file="head.jsp"%>
	<div data-role="page" id="demo-page">

		<div data-role="page" id="demo-page">
			<div data-role="header">
				<h1><%=name %>的代理列表
				</h1>
			</div>
			<div role="main" class="ui-content">
				<ul data-role="listview" data-inset="true" data-filter="true"
					data-filter-placeholder="搜索">
					<%
					for (int i = 0; i < adviceList.size(); i++) {
						Admin advice = adviceList.get(i);
				%>
					<li>
						<h4>
							账号：<%=advice.getName()%>
						</h4>
						<p>
							父代理：<%=advice.getFatherName()%></p>
						<p>
							手机号：<%=advice.getPhone()%></p>
						<p>
							房卡数：<%=advice.getGold()%></p>
					</li>
					<%
					}
				%>
				</ul>
			</div>

			<div data-role="footer" data-position="fixed">
				<div data-role="navbar">
					<p>
						<input type="submit"
							onclick="location.href='/GameServer/agent_add.jsp'"
							class="btn btn-red" value="添加代理" />
					</p>
				</div>
			</div>
		</div>
</body>
</html>